-- GENERATED SPELL FOR [Scoodles] --


function spell0_24899(pUnit, Event) --@Flipper Thwack,n/a--
pUnit:FullCastSpellOnTarget(50169,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24899', 566, 1)
end

function spell1_24899(pUnit, Event) --@Powerful Bite,n/a--
pUnit:FullCastSpellOnTarget(48287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24899', 5345, 1)
end

function Sorts_24899(pUnit, Event)
local choix_sorts_24899 = math.random(0, 1)
if choix_sorts_24899 == 0 then
pUnit:RegisterEvent('spell0_24899', 1, 1)
end
if choix_sorts_24899 == 1 then
pUnit:RegisterEvent('spell1_24899', 1, 1)
end
end

function mob24899_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24899', math.random(1500, 3000), 1)
end

function mob24899_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24899_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24899_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24899, 1, 'mob24899_Action')
RegisterUnitEvent(24899, 2, 'mob24899_Leave')
RegisterUnitEvent(24899, 3, 'mob24899_Kill')
RegisterUnitEvent(24899, 4, 'mob24899_Die')
